﻿<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
<%@taglib uri="/struts-tags" prefix="s" %>
<%
	String path = request.getContextPath();
	String basePath = request.getScheme() + "://"
			+ request.getServerName() + ":" + request.getServerPort()
			+ path + "/";
%>
<!DOCTYPE HTML>
<html>
	<head>
		<base href="<%=basePath%>">
		<title>分销中心</title>
		<meta http-equiv="pragma" content="no-cache">
		<meta http-equiv="cache-control" content="no-cache">
		<meta http-equiv="expires" content="0">
		<meta http-equiv="keywords" content="keyword1,keyword2,keyword3">
		<meta http-equiv="description" content="This is my page">
		<meta name="viewport"
			content="width=device-width, initial-scale=1.0, minimum-scale=1.0, maximum-scale=1.0, user-scalable=no">
		<link rel="stylesheet"
			href="<%=request.getContextPath()%>/admin/css/pintuer.css">
		<script src="<%=request.getContextPath()%>/admin/js/jquery.js"></script>
		<script src="<%=request.getContextPath()%>/admin/js/pintuer.js"></script>
	</head>

	<body style="background: #F0F0F0; font-size: 12px;">
		<div
			style="height: 150px; width: 100%; background: #FF6A6A; text-align: center;margin: 0 auto;">
			<div style="text-align: center;">
			<img style="position: relative; top: 20px;"
				src="${team.img}" width="80"
				height="80" class="radius-circle" />
			</div>
			<div style="text-align: center;">
			<span
				style="position: relative; top: 40px;  font-size: 15px; color: white;">用户ID:${team.id}</span>
			</div>
		</div>
		<div style="width: 100%; height: 50px; background: white;">

			<div style="float: left; width: 40%; text-align: center;">
				<br/>
				<span style="font-size:14px">可用积分</span>
				<br/>
				<span id="score">${team.score}</span>
			</div>
			<div style="float: left; width: 40%; text-align: center;">
				<br/>
				<span style="font-size:14px">总积分</span>
				<br/>
				<span id="allscore">${team.allscore}</span>
			</div>
			<div style="margin-top:15px;float: left; width: 20%; text-align: center;">
				<button onclick="qiandao('${team.sellerid}');" style="color:gray;line-height:20px;border:none;background:#f5f5f5;font-size:16px;">&nbsp;签&nbsp;到&nbsp;</button>
			</div>
		</div>
		<div style="clear:both;height:5px;width:100%"></div>
		<script type="text/javascript">
				function qiandao(openid){
					$.ajax({
						'url':'team!qiandao.action',
						'type':'post',
						'data':{'team.sellerid':openid},
						'dataType':'json',
						'success':function(data){
						//data是服务器返回的数据
							if(data=="already"){
								alert("今天已经签到了哦！");
							}else{
								alert("签到成功，获得10个积分！");
								$('#score').html($('#score').text()*1+10);
								$('#allscore').html($('#allscore').text()*1+10);
							}
						},
						'error':function(){
							alert("签到错误！");
						}
					}); 
				}
		
		</script>
		<table class="table" style="background: white;">
			<tr onclick="location='team!findteam.com.kecheng.action'"
				style="height: 45px;">
				<td style="width: 20%;">
					<span class="icon-users text-big text-green"></span>
				</td>
				<td style="width: 70%; font-size: 15px; color: gray;">
					我的团队
				</td>
				<td style="width: 10%;">
					<span class="icon-angle-right text-big "></span>
				</td>
			</tr>
			<tr onclick="location='order!findbystatus.com.kecheng.action?style=待付款'"
				style="height: 45px;">
				<td>
					<span class="icon-file-text text-big text-red"></span>
				</td>
				<td style="font-size: 15px; color: gray;">
					我的订单
				</td>
				<td>
					<span class="icon-angle-right text-big"></span>
				</td>
			</tr>
			<tr onclick="location='team!tomoney.com.kecheng.action'"
				style="height: 45px;">
				<td>
					<span class="icon-trophy text-big text-red"></span>
				</td>
				<td style="font-size: 15px; color: gray;">
					我的积分
				</td>
				<td>
					<span class="icon-angle-right text-big"></span>
				</td>
			</tr>
			<tr onclick="location='team!paihangjf.com.kecheng.action'"
				style="height: 45px;">
				<td>
					<span class="icon-sort-amount-asc text-big text-blue"></span>
				</td>
				<td style="font-size: 15px; color: gray;">
					排行榜
				</td>
				<td>
					<span class="icon-angle-right text-big"></span>
				</td>
			</tr>
			<tr onclick="location='<%=path %>/w/post!findbyid.com.kecheng.action?id1=1'"
				style="height: 45px;">
				<td>
					<span class="icon-columns text-big text-blue"></span>
				</td>
				<td style="font-size: 15px; color: gray;">
					推广手册
				</td>
				<td>
					<span class="icon-angle-right text-big"></span>
				</td>
			</tr>
			<tr onclick="location='team!find.com.kecheng.action?team.sellerid=${team.sellerid}'"
				style="height: 45px;">
				<td>
					<span class="icon-tasks text-big text-yellow"></span>
				</td>
				<td style="font-size: 15px; color: gray;">
					我的资料
				</td>
				<td>
					<span class="icon-angle-right text-big"></span>
				</td>
			</tr>
			<!-- 
			<tr
				onclick="location='team!paihang.com.kecheng.action?team.sellerid=${team.sellerid}'"
				style="height: 50px;">
				<td>
					<span class="icon-sort-amount-asc text-big text-blue"></span>
				</td>
				<td style="font-size: 15px; color: gray;">
					佣金排行
				</td>
				<td>
					<span class="icon-angle-right text-big"></span>
				</td>
			</tr>
			 -->
			
			<tr onclick="location='https://open.weixin.qq.com/connect/oauth2/authorize?appid=wxb77e811241050c4e&redirect_uri=http%3a%2f%2fwww.tyouz.com%2fteam!erweima.action&response_type=code&scope=snsapi_base&state=STATE#wechat_redirect'"
				style="height: 45px;">
				<td>
					<span class="icon-qrcode text-big text-blue"></span>
				</td>
				<td style="font-size: 15px; color: gray;">
					我的二维码
				</td>
				<td>
					<span class="icon-angle-right text-big"></span>
				</td>
			</tr>
			
			<tr onclick="location='team!tbjifen.com.kecheng.action?team.sellerid=${team.sellerid}'"
				style="height: 45px;">
				<td>
					<span class="icon-dashboard  text-big text-yellow"></span>
				</td>
				<td style="font-size: 15px; color: gray;">
					获取淘宝订单积分
				</td>
				<td>
					<span class="icon-angle-right text-big"></span>
				</td>
			</tr>
			<tr onclick="location='order!findAllSd.com.kecheng.action'"
				style="height: 45px;">
				<td>
					<span class="icon-bullseye  text-big text-green"></span>
				</td>
				<td style="font-size: 15px; color: gray;">
					晒单广场
				</td>
				<td>
					<span class="icon-angle-right text-big"></span>
				</td>
			</tr>
		</table>
		<div style="height:45px;clear:both;width:100%;"></div>
	<s:include value="/w/tmpfoot.jsp"></s:include>	
	</body>
</html>
